← Back to issue list

parse-info-all bool

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1778701
Type
issue
State
open
Author
~apachelogger
Labels
19.04 19.04-blue 19.04-external
Created
2018-06-26 10:43:10.546322+00:00
Updated
2019-02-12 11:15:47.896802+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

It would be cool if parts had a `parse-info-all` key which enables parsing all data it can find. Currently a developer needs to list all appstream files AND then also set the common-id on the app. This seems excessive. Since appstream files have well known locations it'd be far easier to simply enable extracting all meta data from a part. So ``` name: sampleapp-name adopt-info: sampleapp apps: sampleapp: command: sampleapp common-id: com.example.sampleapp otherapp: command: otherapp common-id: com.example.otherapp thirdapp: command: sampleapp common-id: com.example.thirdapp parts: sampleapp: plugin: dump source: http://github.com/example/sampleapp.git parse-info: [usr/share/appdata/sampleapp.metainfo.xml,usr/share/appdata/otherapp.metainfo.xml,usr/share/appdata/thirdapp.metainfo.xml,usr/share/appdata/fourthapp.metainfo.xml] ``` to ``` name: sampleapp-name adopt-info: sampleapp apps: sampleapp: command: sampleapp common-id: com.example.sampleapp otherapp: command: otherapp common-id: com.example.otherapp thirdapp: command: sampleapp common-id: com.example.thirdapp parts: sampleapp: plugin: dump source: http://github.com/example/sampleapp.git parse-info-all: true ``` If full extraction isn't viable for a given piece of software the developer may still opt to do the explicit list, so nothing is lost. In the event auto extraction will be the desired thing (which to me seems to be case for probably just about all FLOSS desktop application) the explicit listing is entirely superfluous.

Evaluation history

No evaluation history available.